WooCommerce\Square\Handlers\Order A

Total Complexity 73
Dependencies 7
Dependents 4
Total lines 595
Lines of code 269
Logical lines of code 139
Comment lines 231
Methods 24
Properties 2

Methods 24

Method Rating Maintainability Complexity Lines of code
maybe_sync_stock_for_refund_from_other_gateway()
A
45 13 40
filter_gateway_title()
A
55 8 18
maybe_stage_inventory_updates_for_product()
S
59 7 13
cache_previous_stock()
S
60 6 13
maybe_sync_staged_inventory_updates()
S
55 5 20
maybe_sync_stock_for_order_via_paypal()
S
60 5 14
filter_payment_method_title()
S
55 4 20
add_admin_order_items()
S
47 2 48
filter_order_item_totals()
S
58 2 15
maybe_sync_stock_for_order_via_other_gateway()
S
70 3 6
maybe_sync_stock_for_store_api_order_via_other_gateway()
S
70 3 6
get_gift_card_total_refunded_amount()
S
71 2 5
sync_stock_for_order()
S
65 2 9
__construct()
S
61 1 11
get_gift_card_last4()
S
79 1 3
set_gift_card_last4()
S
78 1 3
get_gift_card_total_charged_amount()
S
78 1 3
set_gift_card_total_refunded_amount()
S
78 1 3
set_order_total_before_gift_card()
S
78 1 3
get_order_total_before_gift_card()
S
78 1 3
hide_square_order_item_meta()
S
77 1 4
is_tender_type_gift_card()
S
78 1 3
is_tender_type_card()
S
78 1 3
set_gift_card_total_charged_amount()
S
78 1 3